﻿using Cl.Entity.DataBaseEntity.System;
using Cl.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Cl.Service.Service.System.Log
{
    public class LogService : ILogService
    {

        #region 依赖注入

        private ClRepository<LoginLog> _loginLogRepository;

        /// <summary>
        /// 构造函数
        /// </summary>
        public LogService(ClRepository<LoginLog> loginLogRepository)
        {
            _loginLogRepository = loginLogRepository;
            //Repository<Template> templateRepository

            //_templateRepository = templateRepository;
        }

        #endregion

        public async Task<bool> SetLoginLog(LoginLog loginLog)
        {
            return await _loginLogRepository.InsertAsync(loginLog);
        }

    }
}
